package com.mvp.shq.washer.ui.main;

import com.mvp.shq.washer.base.BaseModel;
import com.mvp.shq.washer.base.BasePresenter;
import com.mvp.shq.washer.base.BaseView;
import com.mvp.shq.washer.entity.BaseResult;
import com.mvp.shq.washer.entity.User;
import com.mvp.shq.washer.entity.VersionBean;

import io.reactivex.Observable;

/**
 * Created by Administrator on 2017/8/19.
 */

public interface MainConstract {
    interface View extends BaseView{
        void updateAPK(VersionBean versionBean);
    };
    interface Model extends BaseModel{
        Observable<BaseResult<User>> getUserInfo(String token,String userId);
        Observable<BaseResult<VersionBean>> version(String platform);
    };
    public abstract class Presenter extends BasePresenter<Model,View>{
        abstract void setAlias();
        abstract void getUserInfo();
        abstract void getVersion();
    }
}
